package com.swpu.controller;

import com.swpu.result.Result;
import com.swpu.utils.RSAUtil;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class RSAController {
    @GetMapping("/rsa-pks")
    public Result<String> getRsaPublicKey() {
        String pk = RSAUtil.getPublicKeyStr();
        return Result.success(pk);
    }
}
